const fs = require('node:fs');
const path = require('node:path');

fs.readFile(path.resolve(__dirname, './hd/test.txt'), (err, buf) => {
  if (err) {
    console.log('出错了')
  } else {
    console.log(buf.toString());
  }
})